import yfinance as yf

# 获取平安A股（601318.SS）的数据
ticker = yf.Ticker("601318.SS")
# 获取最近一年的历史数据
hist = ticker.history(start="2023-01-01", end="2023-12-31")

print(hist)
